import { App } from 'vue';
import warningInfo from './warningInfo/index.vue';
import weatherInfo from './weatherInfo/index.vue';
import dataMonitoring from './dataMonitoring/index.vue';
import disposalPlan from './disposalPlan/index.vue';
import surroundingResources from './surroundingResources/index.vue';
import assistButton from './assistBtn/index.vue';
import assistantTree from './assistantTree/index.vue';

const dynamicComponents = {
  warningInfo,
  weatherInfo,
  dataMonitoring,
  disposalPlan,
  assistButton,
  surroundingResources,
  assistantTree
};
export default {
  install(app: App) {
    Object.keys(dynamicComponents).forEach((key) => {
      app.component(key, dynamicComponents[key]);
    });
  }
};
